<template>
  <div class="g-card">
    <div class="title" v-show="title">{{ title }}</div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "g-card",
  props: {
    title: {
      type: String
    }
  }
};
</script>

<style lang="less" scoped>
.g-card {
  padding: 18px 20px;
  background: @white;

  .title {
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: @text-color;
    margin-bottom: 8px;
  }
}
</style>
